﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IsmsExplorer.Infrastructure.DomainBase;

namespace IsmsExplorer.Infrastructure.RepositoryFramework {
    public interface IRepository<T> where T : EntityBase {
        T FindBy(object key);
        IList<T> FindAll();
        void Add(T item);
        T this[object key] { get; set; }
        void Remove(T item);
        IUnitOfWork UnitOfWork { get; }
    }

}
